package com.ysq.www.api.work.mapper;

import com.ysq.www.api.work.entity.CopyTo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ysq.www.api.work.provider.CopyToProvider;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 抄送记录表 Mapper 接口
 * </p>
 *
 * @author dql
 * @since 2020-08-20
 */
public interface CopyToMapper extends BaseMapper<CopyTo> {

    /**
     * 批量插入抄送记录
     * @param cList 抄送记录集合
     */
    void insertList(@Param("list") List<CopyTo> cList);

    /**
     * 批量插入抄送记录
     * @param cList 抄送记录集合
     */
    @InsertProvider(type = CopyToProvider.class,method = "addList")
    void insertListByNote(@Param("list") List<CopyTo> cList);
}
